/*
 * @Author: hq
 * @Date: 2022-05-18 19:57:54
 * @LastEditors: hq
 * @LastEditTime: 2022-06-28 20:48:08
 * @Description: your project
 * @version: 1.0
 */
import request from "@/utils/request";

//顶部新消息
export function getMenuData() {
    return request({
        url: "menus/index", //自己的接口地址
        method: "post", //请求方法
    });
}
//上传图片
export function upLoad(data) {
    return request({
        // url: "common/upfile", //自己的接口地址
        url: "common/qcloud/upload", //自己的接口地址
        method: "post", //请求方法
        data,
        headers: {
            "Content-Type": "multipart/form-data",
        },
    });
}
//上传图片1
export function upLoadImg(data) {
    return request({
        // url: "common/upfile", //自己的接口地址
        url: "qcloud/upload", //自己的接口地址
        method: "post", //请求方法
        base: 'common',
        data,
        headers: {
            "Content-Type": "multipart/form-data",
        },
    });
}
// //上传图片2
// export function upLoadImg2(data) {
//     return request({
//         // url: "common/upfile", //自己的接口地址
//         url: "qcloud/upload", //自己的接口地址
//         method: "post", //请求方法
//         base: 'common',
//         data,
//         headers: {
//             "Content-Type": "multipart/form-data",
//         },
//     });
// }